package com.jackson.spring.aop.impl;

import java.util.Arrays;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Repository;

/**
 * 
 * 存在多个切面时，@Order(2) 来决定优先级，数字越小，优先级越高，先执行
 * @author jackson
 *
 */
@Order(1)
@Aspect
@Repository
public class ValidationAspectj {
	
	@Before("LogingAspectj.daspectjExpression()")
	public void validataionAspect(JoinPoint joinpoint){
		System.out.println("-----> ValidationAspectj : "+ Arrays.asList(joinpoint.getArgs()));
	}
}
